﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;
using System.ComponentModel;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-04-02 14:53
    /// 描 述：人员报名名单实体类
    /// </summary>
    [Table("user_activity_registration")]
    public class UserActivityRegistrationEntity : BaseEntity
    {
        /// <summary>
        /// 用户id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? userid { get; set; }

        [Description("电话号码")]
        public string telephone { get; set; }

        [Description("用户姓名")]
        public string nickname { get; set; }
        [Description("性别")]
        public string sex { get; set; }
        [Description("真实姓名")]
        public string realname { get; set; }

        [Description("身份证号")]
        public string cardId { get; set; }
        /// <summary>
        /// 活动id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? newsid { get; set; }
        /// <summary>
        /// 报名时间
        /// </summary>
        /// <returns></returns>
        [Description("报名时间")]
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? time { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        /// <returns></returns>
        public string username { get; set; }
        /// <summary>
        /// 微信id
        /// </summary>
        /// <returns></returns>
        public string openid { get; set; }

        [NotMapped]
        public string NewsTitle { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? tenant_id { get; set; }
    }
}
